import request from '@/utils/request'

/*登录接口*/
export function login(data) {
  console.log("reqestData:" + {...data})
  return request({
    url: '/user/login',   // 接口地址
    method: 'post',
    data
  })
}

/*获取基本信息*/
export function getInfo(userId) {
  return request({
    url: '/user/info',
    method: 'get',
    params: { userId }
  })
}

/*退出登陆*/
export function logout() {
 /* return request({
    url: '/user/logout',
    method: 'post'
  })*/

  return {
    code: 200,
    data: 'success'
  }
}
